﻿using Framework;

namespace BooksLib.Models
{
    public class Book : BindableObject
    {
        public int BookId { get; set; }
        //public int BookId {get;set;}
        //provate string _title;
        //public string Title
        //{
        //get=>_title;
        //set=>SetProperty(ref _title,Value);
        //}
        private string _title;
        public string Title
        {
            get => _title;
            set => SetProperty(ref _title, value);
        }

        private string _publisher;
        public string Publisher
        {
            get => _publisher;
            set => SetProperty(ref _publisher, value);
            //get=>_publisher;
            //set=>SetProperty(ref _publisher, value);
        }

        public override string ToString() 
        { return Title; }
    }
}
